import {
  axios,
  qs
} from '@/utils/request'

/**
 * 日志列表数据
 */
export function list(data) {
  return axios({
    url: '/system/log/list',
    method: 'post',
    data: qs.stringify(data)
  })
}

/**
 * 删除日志
 */
export function del(ids) {
  return axios({
    url: '/system/log/delete',
    method: 'delete',
    data: qs.stringify({
      ids
    }),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
